package com.ficus.road.maintain.core.model.oss;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 主要是为了经过编码的文件上传
 *
 * @author shiye
 * @create 2020-06-10 16:37
 */
public class FileUploadParam implements Serializable {

    @NotNull(message = "文件名称不能为空")
    private String fileName;

    @NotNull(message = "目录名称不能为空")
    private String directory;

    @NotNull(message = "文件类型不能为空")
    private String fileType = "png";

    /**
     * 经过base64编码后的文件
     */
    @NotNull(message = "文件内容不能为空")
    private String data;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getDirectory() {
        return directory;
    }

    public void setDirectory(String directory) {
        this.directory = directory;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}